package com.zwb.demo.easyweb.modules.database.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/** 数据库表 */
@ApiModel
@Data
public class DatabaseTableVO {

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "表类型")
    private String tableType;

    @ApiModelProperty(value = "表id类型")
    private String idType;

    @ApiModelProperty(value = "主键策略")
    private Integer generationStrategy;

    @ApiModelProperty(value = "数据库id")
    private String databaseId;

    @ApiModelProperty(value = "数据库名称")
    private String databaseName;

    @ApiModelProperty(value = "表描述")
    private String tableDesc;

    @ApiModelProperty(value = "类名")
    private String className;

    @ApiModelProperty(value = "主表id")
    private String leaderTableId;

    @ApiModelProperty(value = "同步状态")
    private String syncState;

    @ApiModelProperty(value = "列表")
    private List<DatabaseColumnVO> columns;
}
